package cn.itrip.service;

import cn.itrip.DTO.ItripListCommentDTO;
import cn.itrip.DTO.ItripScoreCommentDTO;
import cn.itrip.entity.ItripComment;
import cn.itrip.entity.ItripImage;
import cn.itrip.utils.Page;
import cn.itrip.vo.biz.ItripSearchCommentVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItripCommentService extends IService<ItripComment> {
    List<ItripComment> getCommentByHotelId(Long hotelId);
    Integer getCommentIsOkCount(Long hotelId);
    Integer getCommentHavingImgCount(Long hotelId);
    ItripScoreCommentDTO getAvgAndTotalScore(Long hotelId);
    Page<ItripListCommentDTO> queryItripCommentPageByMap(ItripSearchCommentVO itripSearchCommentVO) throws Exception;
    boolean itriptxAddItripComment(ItripComment obj, List<ItripImage> itripImages) throws Exception;
}
